home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 240 (DVD) / Issue 240 - February 2008 - DPCS0208DVD.ISO / Extras / NetObjects Fusion / NOF10.exe / data1.cab / Program_Executable_Files / NetObjects_System / script.js < prev    next >
Encoding:
Text File  |  2007-04-11  |  51.1 KB  |  1,838 lines

  1. F_NN = ( navigator.appName=='Netscape' ) && ( parseInt( navigator.appVersion ) < 5 );
  2. F_MAC = ( navigator.appVersion.indexOf('Macintosh') > -1 );
  3. F_DOM_NN = false;
  4. F_DOM_IE = false;
  5. F_DOM = false;
  6. var agt = navigator.userAgent.toLowerCase();
  7. is_opera = ( agt.indexOf("opera") != -1 );
  8. if ( document.getElementById && ( navigator.appName=='Netscape' ) )
  9. F_DOM_NN = true;
  10. if ( document.getElementById )
  11. F_DOM = true;
  12. if ( document.getElementById && ( navigator.appName == "Microsoft Internet Explorer" ) )
  13. F_DOM_IE = true;
  14. document.objectModel = new Array(0);
  15. document.F_loaded =false;
  16. document.F_dragLayer =null;
  17. window.NOFevent = new F_cNOFevent();
  18. top.F_curObj = null;
  19. var NOFparameters = null;
  20. var params = NOFparameters;
  21. window.defaultStatus = "";
  22. function F_cMain() {
  23. this.commands = this.initCommands();
  24. this.commandsInit();
  25. if( ( navigator.appName != 'Netscape' ) || F_DOM ) F_cStyles();
  26. if(!F_NN && F_MAC) {
  27. var t = document.all.tags("A");
  28. for( var i = 0; i < t.length; i++ ) {
  29. t[i].ondragstart = F_dragCancel;
  30. }
  31. }
  32. }
  33. function F_dragCancel() {
  34. event.cancelBubble = true;
  35. event.returnValue = false;
  36. }
  37. F_prototype("F_cMain.prototype.",
  38. "initCommands", "F_initCommands",
  39. "commandsInit", "F_dummy",
  40. "cObject", "F_cObject",
  41. "closing", false,
  42. "closingObjects", 0
  43. );
  44. function F_cNOFevent() {
  45. this.altKey = false;
  46. this.button = 0;
  47. this.ctrlKey = false;
  48. this.keyCode = null;
  49. this.shiftKey = false;
  50. this.pageY = null;
  51. pageY = null;
  52. }
  53. function F_cStyles() {
  54. if( is_opera )
  55. return;
  56. var ss = null;
  57. var docSSs = document.styleSheets;
  58. for (var i=0;i < docSSs.length;i++) {
  59. if ("NOF_STYLE_SHEET" == docSSs[i].title) {
  60. ss = docSSs[i];
  61. break;
  62. }
  63. }
  64. if (ss == null)
  65. ss = docSSs["NOF_STYLE_SHEET"];
  66. if (ss == null)
  67. ss = docSSs[0];
  68. obj = ss.rules;
  69. if( ! obj )
  70. obj = ss.cssRules;
  71. for ( var i = 0; i < obj.length; i++ ) {
  72. var t = obj[i].selectorText;
  73. var theID = t.substring(t.indexOf("#")+1,999);
  74. var theContainer ;
  75. if ( document.all )
  76. theContainer = document.all.tags('SPAN')[theID];
  77. else if ( document.getElementById )
  78. theContainer = document.getElementsByTagName('SPAN')[theID];
  79. if(typeof theContainer == "undefined") {
  80. if ( document.all )
  81. theContainer = document.all.tags('DIV')[theID];
  82. else if ( document.getElementById )
  83. theContainer = document.getElementsByTagName('DIV')[theID];
  84. }
  85. var s = obj[i].style
  86. if(typeof theContainer != "undefined") {
  87. if (typeof(theContainer.style) != "undefined")
  88. with(theContainer.style) {
  89. left = s.left;
  90. top = s.top;
  91. clip = s.clip;
  92. zIndex = s.zIndex;
  93. visibility = s.visibility;
  94. }
  95. }
  96. }
  97. }
  98. var F_bar="Initializing ";
  99. var F_count = 1;
  100. var F_barError = "";
  101. var F_bar="Initializing ";
  102. function F_cObject(theLayerID, theType, theParent, theHandler, isRelative, objectID, formName, objectName, theValue) {
  103. if( F_bar.length > 63 ) F_bar="Initializing " + F_count++;
  104. F_bar += "|";
  105. window.status=F_barError + F_bar;
  106. this.formObj = (theType == "chk") || (theType == "rad") || (theType == "tfd") || (theType == "sel") || (theType == "btn");
  107. this.styleID = objectID;
  108. this.name = objectID;
  109. this.type = theType;
  110. this.childObjects = new Object();
  111. if(theParent == "")
  112. this.parent = null;
  113. else {
  114. this.parent = document.objectModel[theParent];
  115. if(this.parent != null) {
  116. this.parent.childObjects[this.styleID] = this;
  117. this.level = this.parent.level + 1;
  118. }
  119. }
  120. this.timeoutTest = "document.objectModel";
  121. if(parent!=self) {
  122. var f = self;
  123. while(f!=top) {
  124. this.timeoutTest="frames['"+f.name+"']."+this.timeoutTest;
  125. f = f.parent;
  126. }
  127. this.timeoutTest="top."+this.timeoutTest;
  128. }
  129. this.textRef = this.timeoutTest + "['"+ this.styleID+ "']";
  130. this.timeoutTest = "("+this.timeoutTest + "&&"+this.textRef+")";
  131. this.commands = document.main.commands[theType];
  132. if( navigator.appName=='Netscape' && !F_DOM_NN )
  133. {
  134. var theForm = (formName == "")? "" : ".forms['" + formName + "']";
  135. this.style = (this.parent != null) ? this.parent.style : document;
  136. if(theLayerID != "") {
  137. var IDarray = theLayerID.split(":");
  138. this.style = this.style.layers[IDarray[0]];
  139. }
  140. this.objRef = this.style.document[objectID];
  141. this.formRef = (formName == "")? null : this.style.document.forms[formName];
  142. if ((theForm != "") && (objectName!="")) {
  143. if(this.formRef) {
  144. if(objectName == (parseInt(objectName)+"")) {
  145. for (var i = 0; i < this.formRef.length; i++) {
  146. if (this.formRef[i].name == objectName) {
  147. if(((theType == "rad") && (this.formRef[i].value == theValue)) || (theType != "rad")) {
  148. this.objRef = this.formRef[i];
  149. break;
  150. }
  151. }
  152. }
  153. } else {
  154. this.objRef = this.formRef[objectName];
  155. if(theType == "rad") {
  156. this.objRef = this.radioButtonByValue(this.objRef, theValue);
  157. }
  158. }
  159. } else {
  160. F_debug(this.styleID +": the form isn't displaying due to a Netscape bug.");
  161. }
  162. }
  163. if((theType == "snd") || (theType == "vrm")) {
  164. if((this.style.document.embeds.length>0)&&(this.style.document.embeds[0])) {
  165. this.objRef = this.style.document.embeds[0];
  166. } else {
  167. this.objRef = null;
  168. }
  169. }
  170. if(theType == "fra") this.objRef = eval(objectID+".document");
  171. if(theType == "img") {
  172. this.objRef = this.style.document.images[0];
  173. if ( !this.objRef ) {
  174. this.objRef = new Image();
  175. }
  176. }
  177. if(this.type =='jbn'){
  178. if(typeof this.objRef == "undefined")
  179. this.objRef = this.style.document.applets[0];
  180. }
  181. this.styleDiv = this.style;
  182. if(theLayerID == "LayoutLYR") {
  183. document.F_layout_left = parseInt(this.style.left);
  184. document.F_layout_top = parseInt(this.style.top);
  185. }
  186. if(this.formObj && this.formRef && (typeof(this.objRef) == "undefined"))
  187. F_debug(this.styleID +": either the form or the form element doesn't have a name.");
  188. this.savedPosition = new F_cPoint(this.style.left,this.style.top);
  189. } else {
  190. if( theLayerID == "" ) {
  191. if( this.parent != null ) {
  192. this.styleDiv = this.parent.styleDiv
  193. this.style = this.parent.style;
  194. } else {
  195. this.styleDiv = document;
  196. this.style = document.style;
  197. }
  198. } else {
  199. if ( F_DOM_NN )
  200. this.styleDiv = document.getElementsByTagName('SPAN')[theLayerID];
  201. else if( is_opera ) {
  202. nodeList = document.getElementsByTagName('SPAN');
  203. this.styleDiv = nodeList.item(theLayerID);
  204. } else
  205. this.styleDiv = document.all.tags('SPAN')[theLayerID];
  206. if(typeof this.styleDiv == "undefined" || this.styleDiv == null ) {
  207. if ( F_DOM_NN ) {
  208. this.styleDiv = document.getElementById(theLayerID);
  209. }
  210. else if( is_opera ) {
  211. nodeList = document.getElementById(theLayerID);
  212. this.styleDiv = nodeList;
  213. } else
  214. this.styleDiv = document.all.tags('DIV')[theLayerID];
  215. }
  216. this.style = this.styleDiv.style;
  217. }
  218. if ( theLayerID.indexOf("NavigationBar") > -1 && theLayerID.indexOf("LYR") > -1 && document.all ) {
  219. var nof = document.body.NOF;
  220. if ((nof != undefined) && (typeof(nof) == 'string') && (nof.indexOf("L=(") != -1)) {
  221. layoutWidth = nof.split("L=(");
  222. layoutWidth = layoutWidth[1].split(",");
  223. this.style.width = layoutWidth[1];
  224. }
  225. }
  226. if ( F_DOM_NN ) {
  227. this.objRef = ((objectID != "")&&(theType != "doc")&&(theType != "lyr")&&(theType != "nav")&&(theType != "txt")&&(theType != "map"))?
  228. document.getElementById(objectID) : null;
  229. this.formRef = (formName == "")? null : document.forms[formName];
  230. }
  231. else {
  232. this.objRef = ((objectID != "")&&(theType != "doc")&&(theType != "lyr")&&(theType != "nav")&&(theType != "txt")&&(theType != "map"))?
  233. document.all.item(objectID) : null;
  234. this.formRef = (formName == "")? null : document.forms[formName];
  235. }
  236. if(theLayerID == "LayoutLYR") {
  237. if ( F_DOM_NN ) {
  238. document.F_layout_left = ( this.style.left.indexOf('pt') > 0 ) ? this.style.left.substring(0,this.style.left.indexOf('pt') ) :
  239. this.style.left;
  240. document.F_layout_top = ( this.style.top.indexOf('pt') > 0 ) ? this.style.top.substring(0,this.style.top.indexOf('pt') ) :
  241. this.style.top;
  242. } else {
  243. document.F_layout_left = this.style.pixelLeft;
  244. document.F_layout_top = this.style.pixelTop;
  245. }
  246. }
  247. if ( F_DOM_NN ) {
  248. if (typeof(this.style) != "undefined")
  249. this.savedPosition = new F_cPoint(this.style.left,this.style.top);
  250. } else {
  251. if (typeof(this.style) != "undefined")
  252. this.savedPosition = new F_cPoint(this.style.pixelLeft,this.style.pixelTop);
  253. }
  254. }
  255. if((theType == "img") && (typeof this.objRef != "undefined") && (this.objRef != null)){
  256. this.images = new Object();
  257. var i = 'Image 1 (Normal)';
  258. this.images[i] = new Object();
  259. this.images[i].source = this.objRef.src;
  260. this.images[i].complete = true;
  261. }
  262. this.localhandler = F_actionHandler;
  263. this.actions = new Object;
  264. if(theHandler!=null) {
  265. for( var i = 0; i < (theHandler.length - 4); i = i + 5) {
  266. if(typeof this.actions[theHandler[i]]=="undefined"){
  267. this.actions[theHandler[i]] = new Array();
  268. }
  269. var theArray = this.actions[theHandler[i]];
  270. for(var k = i+1; k < i+5; k++) {
  271. theArray[theArray.length] = theHandler[k];
  272. }
  273. }
  274. }
  275. this.lastMessage = this;
  276. this.messageQueue = new F_cQueue();
  277. }
  278. F_prototype("F_cObject.prototype.",
  279. "draggable", false,
  280. "clickable", true,
  281. "level", "1",
  282. "commandHandler", "F_commandHandler",
  283. "dragBoundries", "'none'",
  284. "dropCollision", null,
  285. "dragCollision", null,
  286. "moveCollision", null,
  287. "clickLayer", null,
  288. "masked", false,
  289. "move", null,
  290. "transition", null,
  291. "nextMessage", null,
  292. "currentMessage", null,
  293. "handler", "F_handler",
  294. "checkHandler", "F_checkHandler",
  295. "closing", false);
  296. F_prototypeF("F_cObject.prototype.",
  297. "getObjectValue",
  298. "setObjectValue",
  299. "hide",
  300. "show",
  301. "bringToFront",
  302. "sendToBack",
  303. "shiftZindex1",
  304. "setSource",
  305. "writeSource",
  306. "offset",
  307. "setPosition",
  308. "getPosition",
  309. "restorePosition",
  310. "setTop",
  311. "setLeft",
  312. "setClipTop",
  313. "setClipLeft",
  314. "setClipRight",
  315. "setClipBottom",
  316. "setVisibility",
  317. "isVisible",
  318. "getzIndex",
  319. "setzIndex",
  320. "setIndex",
  321. "getTop",
  322. "getLeft",
  323. "getPageTop",
  324. "getPageLeft",
  325. "getPageTop",
  326. "getWidth",
  327. "getHeight",
  328. "getClipTop",
  329. "getClipLeft",
  330. "getClipRight",
  331. "getClipBottom",
  332. "getClipWidth",
  333. "getClipHeight",
  334. "gotoURL",
  335. "framesetGotoURL",
  336. "getPageXOffset",
  337. "getPageYOffset",
  338. "getWindowInnerHeight",
  339. "getWindowInnerWidth",
  340. "radioButtonByValue",
  341. "getFormObj",
  342. "setClosing",
  343. "resetClosing",
  344. "checkClosing");
  345. if( ( navigator.appName == 'Netscape' ) && !F_DOM_NN ) {
  346. } else {
  347. F_prototypeIE("F_cObject.prototype.",
  348. "getTop",
  349. "getLeft",
  350. "getPageTop",
  351. "getPageLeft",
  352. "setClipRect",
  353. "setClipTop",
  354. "setClipLeft",
  355. "setClipRight",
  356. "setClipBottom",
  357. "getClipRect",
  358. "getClipTop",
  359. "getClipLeft",
  360. "getClipRight",
  361. "getClipBottom",
  362. "getClipWidth",
  363. "getClipHeight",
  364. "getPageXOffset",
  365. "getPageYOffset",
  366. "setIndex",
  367. "shiftZindex1",
  368. "bringToFront",
  369. "sendToBack",
  370. "getWindowInnerHeight",
  371. "getWindowInnerWidth",
  372. "radioButtonByValue",
  373. "setSource",
  374. "writeSource",
  375. "offset");
  376. }
  377. function F_getFormObj(theName) {
  378. for ( var obj in document.objectModel) {
  379. if ((document.objectModel[obj].type == "frm") && (document.objectModel[obj].formRef.name == theName)) {
  380. return (document.objectModel[obj]);
  381. }
  382. }
  383. return(null);
  384. }
  385. function F_offset(theLeft, theTop) {
  386. this.style.offset(theLeft, theTop);
  387. }
  388. function F_setIndex(newIndex) {
  389. var oldIndex = this.getzIndex();
  390. if(this.parent == null) {
  391. this.setzIndex(newIndex);
  392. } else {
  393. with(this.parent.style) {
  394. if(oldIndex>newIndex) {
  395. for (var i=0;i<layers.length;i++) {
  396. var theIndex = layers[i].zIndex;
  397. if((theIndex >= newIndex) && (theIndex < oldIndex)) {
  398. layers[i].zIndex=theIndex + 1;
  399. }
  400. }
  401. }
  402. if(oldIndex<newIndex) {
  403. for (var i=0;i<layers.length;i++) {
  404. var theIndex = layers[i].zIndex;
  405. if((theIndex <= newIndex) && (theIndex > oldIndex)) {
  406. layers[i].zIndex=theIndex - 1;
  407. }
  408. }
  409. }
  410. this.setzIndex(newIndex);
  411. }
  412. }
  413. }
  414. function F_IE_setIndex(newIndex) {
  415. var oldIndex = this.getzIndex();
  416. if(this.parent == null) {
  417. this.setzIndex(newIndex);
  418. } else {
  419. if ( F_DOM_NN ) {
  420. var obj = document.getElementsByTagName("div");
  421. if(oldIndex>newIndex) {
  422. for ( var i = 0; i < obj.length; i++ ) {
  423. var theIndex = obj[i].style.zIndex;
  424. if((theIndex >= newIndex) && (theIndex < oldIndex)) {
  425. obj[i].style.zIndex=theIndex + 1;
  426. }
  427. }
  428. }
  429. if(oldIndex<newIndex) {
  430. for (var i=0;i<obj.length;i++) {
  431. var theIndex = children[i].style.zIndex;
  432. if((theIndex <= newIndex) && (theIndex > oldIndex)) {
  433. obj[i].style.zIndex=theIndex - 1;
  434. }
  435. }
  436. }
  437. this.setzIndex(newIndex);
  438. } else {
  439. with(this.parent.styleDiv) {
  440. if(oldIndex>newIndex) {
  441. for (var i=0;i<children.length;i++) {
  442. var theIndex = children[i].style.zIndex;
  443. if((theIndex >= newIndex) && (theIndex < oldIndex)) {
  444. children[i].style.zIndex=theIndex + 1;
  445. }
  446. }
  447. }
  448. if(oldIndex<newIndex) {
  449. for (var i=0;i<children.length;i++) {
  450. var theIndex = children[i].style.zIndex;
  451. if((theIndex <= newIndex) && (theIndex > oldIndex)) {
  452. children[i].style.zIndex=theIndex - 1;
  453. }
  454. }
  455. }
  456. this.setzIndex(newIndex);
  457. }
  458. }
  459. }
  460. }
  461. function F_bringToFront() {
  462. var theIndex = this.getzIndex();
  463. var O = new Array(0);
  464. with(this.parent.style) {
  465. for (var i=0;i<layers.length;i++) {
  466. var theChildIndex = layers[i].zIndex;
  467. if(theChildIndex >= theIndex) {
  468. O[theChildIndex] = layers[i];
  469. }
  470. }
  471. this.setzIndex(O.length);
  472. for (var i=theIndex+1; i<O.length; i++) {
  473. if(O[i] && O[i].zIndex)
  474. O[i].zIndex=i-1;
  475. }
  476. }
  477. this.setzIndex(O.length-1);
  478. }
  479. function F_IE_bringToFront() {
  480. var theIndex = this.getzIndex();
  481. var A = new Array(0);
  482. if ( F_DOM_NN ) {
  483. obj = document.getElementsByTagName("div");
  484. for ( var i = 0; i < obj.length; i++ ) {
  485. var theChildIndex = obj[i].style.zIndex;
  486. if( theChildIndex >= theIndex )
  487. A[theChildIndex] = i;
  488. }
  489. this.setzIndex( A.length );
  490. for ( var i =theIndex + 1 ; i < A.length; i++ ) {
  491. obj[A[i]].style.zIndex=i-1;
  492. }
  493. } else {
  494. with(this.parent.styleDiv) {
  495. for ( var i = 0; i < children.length; i++ ) {
  496. if((children[i].tagName=="DIV")||(children[i].tagName=="SPAN")) {
  497. var theChildIndex = children[i].style.zIndex;
  498. if(theChildIndex >= theIndex) A[theChildIndex] = i;
  499. }
  500. }
  501. this.setzIndex(A.length);
  502. for (var i=theIndex+1; i< A.length; i++) {
  503. children[A[i]].style.zIndex=i-1;
  504. }
  505. }
  506. }
  507. var l = A.length-1;
  508. this.setzIndex(A.length-1);
  509. }
  510. function F_sendToBack() {
  511. var theIndex = this.getzIndex();
  512. var O = new Array(0);
  513. with(this.parent.style) {
  514. for (var i=0;i< layers.length;i++) {
  515. var theChildIndex = layers[i].zIndex;
  516. if(theChildIndex <= theIndex) {
  517. O[theChildIndex] = layers[i];
  518. }
  519. }
  520. this.setzIndex(1);
  521. for (var i=1; i< theIndex; i++) {
  522. if(O[i] && O[i].zIndex)
  523. O[i].zIndex=i+1;
  524. }
  525. }
  526. }
  527. function F_IE_sendToBack() {
  528. var theIndex = this.getzIndex();
  529. var A = new Array(0);
  530. if ( F_DOM_NN ){
  531. obj = document.getElementsByTagName("div");
  532. for ( var i=0; i < obj.length; i++ ) {
  533. if((obj[i].tagName=="DIV")||(obj[i].tagName=="SPAN")) {
  534. var theChildIndex = obj[i].style.zIndex;
  535. if(theChildIndex <= theIndex) A[theChildIndex] = i;
  536. }
  537. }
  538. this.setzIndex(1);
  539. for (var i=1; i< theIndex; i++) {
  540. obj[A[i]].style.zIndex=i+1;
  541. }
  542. } else {
  543. with(this.parent.styleDiv) {
  544. for (var i=0;i<children.length;i++) {
  545. if((children[i].tagName=="DIV")||(children[i].tagName=="SPAN")) {
  546. var theChildIndex = children[i].style.zIndex;
  547. if(theChildIndex <= theIndex) A[theChildIndex] = i;
  548. }
  549. }
  550. this.setzIndex(1);
  551. for (var i=1; i< theIndex; i++) {
  552. children[A[i]].style.zIndex=i+1;
  553. }
  554. }
  555. }
  556. }
  557. function F_shiftZindex1(dir) {
  558. var theIndex = this.getzIndex() + dir;
  559. with(this.parent.style) {
  560. for (var i=0;i< layers.length;i++) {
  561. if(layers[i].zIndex == theIndex) {
  562. layers[i].zIndex = theIndex - dir;
  563. this.setzIndex(theIndex);
  564. return(true);
  565. }
  566. }
  567. }
  568. return(false);
  569. }
  570. function F_IE_shiftZindex1(dir) {
  571. var theIndex = this.getzIndex() + dir;
  572. if ( F_DOM_NN ) {
  573. obj = document.getElementsByTagName("div");
  574. for (var i=0;i<obj.length;i++) {
  575. if((obj[i].tagName=="DIV")||(obj[i].tagName=="SPAN")) {
  576. if(obj[i].style.zIndex == theIndex) {
  577. obj[i].style.zIndex = theIndex - dir;
  578. this.setzIndex(theIndex);
  579. return(true);
  580. }
  581. }
  582. }
  583. } else {
  584. with(this.parent.styleDiv) {
  585. for (var i=0;i<children.length;i++) {
  586. if((children[i].tagName=="DIV")||(children[i].tagName=="SPAN")) {
  587. if(children[i].style.zIndex == theIndex) {
  588. children[i].style.zIndex = theIndex - dir;
  589. this.setzIndex(theIndex);
  590. return(true);
  591. }
  592. }
  593. }
  594. }
  595. }
  596. return(false);
  597. }
  598. function F_show() {
  599. sendMsg(this.styleID, 'Shown', '', '', false);
  600. this.setVisibility('inherit');
  601. }
  602. function F_hide() {
  603. this.setVisibility('hidden');
  604. sendMsg(this.styleID, 'Hidden', '', '', false);
  605. }
  606. function F_setVisibility(theValue) {
  607. if(theValue == "toggle") {
  608. this.style.visibility = ((this.style.visibility == "hidden") || (this.style.visibility == "hide"))? "inherit" : "hidden";
  609. } else {
  610. this.style.visibility = theValue;
  611. }
  612. }
  613. function F_isVisible() {
  614. theLayer = this;
  615. while(theLayer.type != "doc") {
  616. if((theLayer.style.visibility == "hidden") || (theLayer.style.visibility == "hide")) return(false);
  617. theLayer = theLayer.parent;
  618. }
  619. return(true);
  620. }
  621. function F_setPosition(parm)
  622. {
  623. this.setTop(parm.y);
  624. this.setLeft(parm.x);
  625. }
  626. function F_restorePosition(parm)
  627. {
  628. this.style.top = parm.y;
  629. this.style.left = parm.x;
  630. }
  631. function F_getPosition(parm) {
  632. return(new F_Parm('x',this.getLeft(parm),'y',this.getTop(parm)));
  633. }
  634. function F_setTop(theValue) {
  635. if((this.parent != null) && ((this.parent.type == 'lyr') || (this.parent.type == 'doc'))) {
  636. this.style.top = parseInt(theValue) - parseInt(this.getTop('absolute')) + parseInt(this.getTop('style'));
  637. } else
  638. this.style.top = parseInt(theValue);
  639. }
  640. function F_setLeft(theValue) {
  641. if((this.parent != null) && ((this.parent.type == 'lyr') || (this.parent.type == 'doc'))) {
  642. this.style.left = (parseInt(theValue) - parseInt(this.getLeft('absolute')) + parseInt(this.getLeft('style')));
  643. } else
  644. this.style.left = parseInt(theValue);
  645. }
  646. function F_setClipTop(theValue) {this.style.clip.top = theValue;}
  647. function F_setClipLeft(theValue) {this.style.clip.left = theValue;}
  648. function F_setClipRight(theValue) {this.style.clip.right = theValue;}
  649. function F_setClipBottom(theValue) {this.style.clip.bottom = theValue;}
  650. function F_getzIndex() {
  651. if((this.type == "map") || (this.formObj))
  652. return(parseInt(this.parent.style.zIndex));
  653. return(parseInt(this.style.zIndex));
  654. }
  655. function F_setzIndex(theIndex) {this.style.zIndex = theIndex;}
  656. function F_getLeft(parm) {
  657. if(parm=='screen') {
  658. return(this.style.pageX);
  659. }
  660. if(parm=='absolute') {
  661. return(this.style.pageX-document.F_layout_left);
  662. }
  663. if(parm=='style')
  664. return(this.style.left);
  665. return(parseInt(this.style.left));
  666. }
  667. function F_getTop(parm) {
  668. if(parm=='screen') {
  669. return(this.style.pageY);
  670. }
  671. if(parm=='absolute') {
  672. return(this.style.pageY-document.F_layout_top);
  673. }
  674. if(parm=='style')
  675. return(this.style.top);
  676. return(parseInt(this.style.top));
  677. }
  678. function F_getPageTop() {
  679. var theTop = this.getTop();
  680. theLayer = this.parent;
  681. while (theLayer != null) {
  682. theTop += theLayer.getTop();
  683. theLayer = theLayer.parent;
  684. }
  685. return(theTop);
  686. }
  687. function F_getPageLeft() {
  688. var theLeft = this.getLeft();
  689. theLayer = this.parent;
  690. while (theLayer != null) {
  691. theLeft += theLayer.getLeft();
  692. theLayer = theLayer.parent;
  693. }
  694. return(theLeft);
  695. }
  696. function F_getClipTop() {return(parseInt(this.style.clip.top));}
  697. function F_getClipLeft() {return(parseInt(this.style.clip.left));}
  698. function F_getClipRight() {return(parseInt(this.style.clip.right));}
  699. function F_getClipBottom() {return(parseInt(this.style.clip.bottom));}
  700. function F_getClipWidth() {return(parseInt(this.style.clip.right) - parseInt(this.style.clip.left));}
  701. function F_getClipHeight() {return(parseInt(this.style.clip.bottom) - parseInt(this.style.clip.top));}
  702. function F_NOP() {return(0);}
  703. function F_getWidth() {
  704. return(parseInt(this.getClipWidth()));
  705. }
  706. function F_getHeight() {
  707. return(parseInt(this.getClipHeight()));
  708. }
  709. function F_getPageXOffset() {return(window.pageXOffset);}
  710. function F_getPageYOffset() {return(window.pageYOffset);}
  711. function F_getWindowInnerHeight() {return(window.innerHeight);}
  712. function F_getWindowInnerWidth() {return(window.innerWidth);}
  713. function F_setSource(s) {
  714. if(s!="")
  715. this.style.src=s;
  716. }
  717. function F_writeSource(s) {
  718. this.style.document.open();
  719. this.style.document.write(s);
  720. this.style.document.close();
  721. }
  722. function F_IE_setSource(s) {
  723. if(s!="")
  724. this.styleDiv.innerHTML = "<OBJECT TYPE='text/x-scriptlet' WIDTH="+this.getWidth()+" HEIGHT="+this.getHeight()+" DATA='"+s+"'></OBJECT>";
  725. }
  726. function F_IE_writeSource(s) {
  727. this.styleDiv.innerHTML = s;
  728. }
  729. function F_getZero() { return(0); }
  730. function F_IE_offset( theLeft, theTop ) {
  731. if ( F_DOM_NN ) {
  732. var left = this.style.left;
  733. var top = this.style.top;
  734. if ( left.indexOf("pt") > 0 || left.indexOf("px") > 0 ) {
  735. var pos = ( left.indexOf("pt") > 0 ) ? left.indexOf("pt") : left.indexOf("px");
  736. left = left.substring( 0 , pos );
  737. }
  738. if ( top.indexOf("pt") > 0 || top.indexOf("px") > 0 ) {
  739. var pos = ( top.indexOf("pt") > 0 ) ? top.indexOf("pt") : top.indexOf("px");
  740. top = top.substring( 0 , pos );
  741. }
  742. this.style.left = (parseInt(left) + theLeft) + "px";
  743. this.style.top = (parseInt(top) + theTop) + "px";
  744. } else {
  745. this.style.left = (this.style.pixelLeft + theLeft);
  746. this.style.top = (this.style.pixelTop + theTop);
  747. }
  748. }
  749. function F_IE_setTop(theValue) {
  750. if((this.parent != null) && ((this.parent.type == 'lyr') || (this.parent.type == 'doc'))) {
  751. var t = this.parent.getTop('absolute') - this.getTop('absolute') + this.style.top + parseInt(theValue);
  752. this.style.top = t;
  753. } else
  754. this.style.top = theValue;
  755. }
  756. function F_IE_setLeft(theValue) {
  757. this.style.left = theValue;
  758. }
  759. function F_IE_getLeft(parm) {
  760. if(parm=='screen') {
  761. return(this.getPageLeft());
  762. }
  763. if(parm=='absolute') {
  764. var t = parseInt(this.getPageLeft()) - parseInt(document.F_layout_left);
  765. return t;
  766. }
  767. if(parm=='style') {
  768. if ( F_DOM_NN ) {
  769. return(this.style.left);
  770. }
  771. else {
  772. return(this.style.pixelLeft);
  773. }
  774. }
  775. if ( F_DOM_NN )
  776. return(parseInt(this.style.left));
  777. return(parseInt(this.style.pixelLeft));
  778. }
  779. function F_IE_getTop(parm) {
  780. if(parm=='screen') {
  781. return(this.getPageTop());
  782. }
  783. if(parm=='absolute') {
  784. var t = parseInt(this.getPageTop()+0) - parseInt(document.F_layout_top+0);
  785. return t;
  786. }
  787. if(parm=='style') {
  788. if ( F_DOM_NN )
  789. return(this.style.top);
  790. else
  791. return(this.style.pixelTop);
  792. }
  793. if ( F_DOM_NN )
  794. return(this.style.top);
  795. else
  796. return(this.style.pixelTop);
  797. }
  798. function F_IE_getPageTop() {
  799. var theTop = this.styleDiv.offsetTop;
  800. theLayer = this.parent;
  801. while (theLayer != null) {
  802. theTop += theLayer.styleDiv.offsetTop;
  803. theLayer = theLayer.parent;
  804. }
  805. return(theTop);
  806. }
  807. function F_IE_getPageLeft() {
  808. var theLeft = this.styleDiv.offsetLeft;
  809. theLayer = this.parent;
  810. while (theLayer != null) {
  811. theLeft += theLayer.styleDiv.offsetLeft;
  812. theLayer = theLayer.parent;
  813. }
  814. return(theLeft);
  815. }
  816. function F_IE_getClipRect() {
  817. var clip = this.style.clip;
  818. if( clip == 'rect()' )
  819. clip = '';
  820. if((clip.substring(0,4) == "rect") && (clip.charAt(clip.length-1) == ")")){
  821. if( clip.indexOf( "," > -1 ) ) {
  822. buf = clip.split("," );
  823. clip = "";
  824. for( i = 0; i < buf.length; i++ ) {
  825. clip = clip + buf[i];
  826. }
  827. }
  828. var theRect=clip.substring(5,999).split("px");
  829. return( new F_cRect( parseInt(theRect[3]), parseInt(theRect[0]), parseInt(theRect[1]), parseInt(theRect[2]) ) );
  830. }
  831. if ( this.styleID == "Layout" ) return ( new F_cRect( 0,0,1000,1000 ) );
  832. offsetWidth = ( F_DOM_NN && ( this.type == 'txt' ) ) ? parseInt(this.styleDiv.offsetWidth) * 2 : this.styleDiv.offsetWidth;
  833. offsetHeight = ( F_DOM_NN && ( this.type == 'txt' ) ) ? parseInt(this.styleDiv.offsetHeight) * 2 : this.styleDiv.offsetHeight;
  834. obj = new F_cRect(0 ,0, offsetWidth, offsetHeight );
  835. return obj;
  836. }
  837. function F_IE_getClipTop() {return(this.getClipRect().top);}
  838. function F_IE_getClipLeft() {return(this.getClipRect().left);}
  839. function F_IE_getClipRight() {return(this.getClipRect().right);}
  840. function F_IE_getClipBottom() {return(this.getClipRect().bottom);}
  841. function F_IE_getClipWidth() {return(this.getClipRect().right - this.getClipRect().left);}
  842. function F_IE_getClipHeight() {return(this.getClipRect().bottom - this.getClipRect().top);}
  843. function F_IE_setClipRect(theRect) {
  844. this.style.clip = "rect(" + theRect.top + "px " + theRect.right +
  845. "px " + theRect.bottom + "px " + theRect.left +"px)";
  846. }
  847. function F_IE_setClipTop(theValue) {
  848. theValue = ( theValue == "" ) ? 0 : theValue;
  849. var theRect = this.getClipRect();
  850. theRect.top = theValue;
  851. this.setClipRect(theRect);
  852. }
  853. function F_IE_setClipLeft(theValue) {
  854. theValue = ( theValue == "" ) ? 0 : theValue;
  855. var theRect = this.getClipRect();
  856. theRect.left = theValue;
  857. this.setClipRect(theRect);
  858. }
  859. function F_IE_setClipRight(theValue) {
  860. theValue = ( theValue == "" ) ? 0 : theValue;
  861. var theRect = this.getClipRect();
  862. theRect.right = theValue;
  863. this.setClipRect(theRect);
  864. }
  865. function F_IE_setClipBottom(theValue) {
  866. theValue = ( theValue == "" ) ? 0 : theValue;
  867. var theRect = this.getClipRect();
  868. theRect.bottom = theValue;
  869. this.setClipRect(theRect);
  870. }
  871. function F_IE_getPageXOffset() {
  872. if( F_DOM_NN )
  873. return window.pageXOffset;
  874. else
  875. return(parseInt(document.body.scrollLeft));
  876. }
  877. function F_IE_getPageYOffset() {
  878. if( F_DOM_NN )
  879. return window.pageYOffset;
  880. else
  881. return(parseInt(document.body.scrollTop));
  882. }
  883. function F_IE_getWindowInnerHeight() {
  884. if( F_DOM_NN )
  885. return self.innerHeight;
  886. else
  887. return document.body.clientHeight;
  888. }
  889. function F_IE_getWindowInnerWidth() {
  890. if( F_DOM_NN )
  891. return self.innerWidth;
  892. else
  893. return document.body.clientWidth;
  894. }
  895. function F_handler(msg)
  896. {
  897. top.F_curObj = this;
  898. if(this.formObj && (typeof(this.objRef) == "undefined")) {
  899. return(null);
  900. }
  901. if(msg != null)
  902. {
  903. this.lastMessage.nextMessage = msg;
  904. this.lastMessage = msg;
  905. }
  906. if(this.nextMessage != null)
  907. {
  908. this.messageQueue.push(this.currentMessage);
  909. this.currentMessage = this.nextMessage;
  910. this.nextMessage = this.currentMessage.nextMessage;
  911. this.currentMessage.nextMessage = null;
  912. if (this.nextMessage == null) this.lastMessage = this;
  913. if(this.localhandler != null) this.localhandler(this.currentMessage);
  914. if(this.commandHandler != null) this.commandHandler(this.currentMessage);
  915. if((this.type == "jbn") && (msg.message.substring(0,5) == "BEAN ")) {
  916. var m = msg.message.substring(5,msg.message.length);
  917. var o = this.objRef;
  918. var P = msg.data;
  919. var R = ''
  920. if (F_NN) {
  921. var ParmIsJava = ((typeof P == "object")&& (P.getClass));
  922. } else {
  923. var ParmIsJava = ((typeof P == "object")&&(typeof P.constructor=="undefined"));
  924. }
  925. if (P == '') {
  926. var R = this.objRef[m]();
  927. } else if(ParmIsJava) {
  928. o[m](P);
  929. } else {
  930. if (typeof P == "object") {
  931. var S = 'o[m](';
  932. var A = [];
  933. for (var i in P) {
  934. S += 'A['+A.length+'],';
  935. A[A.length] = P[i];
  936. }
  937. S = S.substr(0, S.length-1)+')';
  938. if(A.length > 0)
  939. var R = eval(S);
  940. else
  941. var R = o[m](P);
  942. } else {
  943. var R = o[m](P);
  944. }
  945. }
  946. this.currentMessage.returnValue = R;
  947. }
  948. if(this.currentMessage.cascade)
  949. for (var child in this.childObjects) {
  950. this.currentMessage.send(this.childObjects[child]);
  951. }
  952. var returnValue = this.currentMessage.returnValue;
  953. this.currentMessage = null;
  954. this.checkHandler();
  955. this.currentMessage = this.messageQueue.pop();
  956. return(returnValue);
  957. }
  958. }
  959. function F_checkHandler() {
  960. setTimeout( this.timeoutTest+'?'+this.textRef + '.handler(null):null;', 1);
  961. }
  962. function F_actionHandler(msg) {
  963. var t = null;
  964. if(typeof this.actions[msg.message] != "undefined") {
  965. top.F_curObj = this;
  966. NOFparameters = F_paramObject(msg, top.F_curObj);
  967. params = NOFparameters;
  968. var theArray = this.actions[msg.message];
  969. if(theArray) {
  970. for( var i = 0; i < (theArray.length - 3); i = i + 4) {
  971. if(F_ckM(msg, msg.message)) {
  972. if(typeof theArray[i] == "function")
  973. msg.returnValue = theArray[i]();
  974. else {
  975. var P = theArray[i + 2];
  976. var Parm = P;
  977. if((typeof P == "object") && (!F_NN || !P.getClass)) {
  978. if (P[0] == "msg")
  979. Parm = sendMsg(P[1], P[2], P[3], null);
  980. if (P[0] == "exp") {
  981. var func = new Function("return("+(P[1] == ''?"''":P[1])+")");
  982. Parm = func();
  983. if(typeof Parm == "undefined") Parm = new Object();
  984. if((typeof Parm == "object")&&(Parm != null)) Parm.getParm=F_getParm2;
  985. }
  986. }
  987. t = sendMsg(theArray[i], theArray[i + 1], Parm, this, theArray[i + 3]);
  988. msg.returnValue = t;
  989. }
  990. }
  991. }
  992. }
  993. }
  994. return(t);
  995. }
  996. function F_errorMessage (errorMessage,errorURL,errorLineNo) {
  997. alert("Error with user added action: '"+msg.message+"'.");
  998. return false;
  999. }
  1000. function F_commandHandler(msg) {
  1001. if(typeof this.commands[msg.message] != "undefined") {
  1002. if(F_ckM(msg, msg.message)) {
  1003. NOFparameters = F_paramObject(msg, top.F_curObj);
  1004. params = NOFparameters;
  1005. window.onerror = F_errorMessage;
  1006. with(this) {
  1007. eval(commands[msg.message]);
  1008. }
  1009. window.onerror = new Function("return(false)");
  1010. }
  1011. }
  1012. }
  1013. function F_ckM(msg, theString) {
  1014. if((msg.message == theString) && (msg.relay == false)) msg.canceled = true;
  1015. return(msg.message == theString);
  1016. }
  1017. function F_send(theTarget) {
  1018. if(this.canceled == false) {
  1019. if(typeof theTarget == "undefined") {
  1020. F_debug("bad target; msg: '" + this.message + "'");
  1021. } else {
  1022. if(!theTarget.handler) {
  1023. F_debug("bad target; msg: '" + this.message + "'");
  1024. } else {
  1025. var t = theTarget.handler(this);
  1026. return(t);
  1027. }
  1028. }
  1029. } else {
  1030. return(null);
  1031. }
  1032. }
  1033. function sendMsg(theTargetName, msgText, msgData, theSender, theCascade) {
  1034. if (sendMsg.arguments.length == 4)
  1035. msg = new F_cMessage(msgText, msgData,false, theSender);
  1036. else if (sendMsg.arguments.length == 5)
  1037. msg = new F_cMessage(msgText, msgData,theCascade, theSender);
  1038. else
  1039. msg = new F_cMessage(msgText, new F_Parm(),false, null);
  1040. if (document.F_loaded) {
  1041. var targetArray = theTargetName.split(":");
  1042. if(targetArray[0]=="_parent") {
  1043. if(msgText=="Go To") {
  1044. F_framesetGotoURL(msgData);
  1045. return(false);
  1046. } else {
  1047. F_debug("targeting frameset with an invalid message");
  1048. return(false);
  1049. }
  1050. }
  1051. if(targetArray.length == 2) {
  1052. var d = parent[targetArray[0]].document;
  1053. if ((d.objectModel) && (d.objectModel[targetArray[1]]) && (d.F_loaded)) {
  1054. var target = parent[targetArray[0]].document.objectModel[targetArray[1]];
  1055. } else {
  1056. if(msgText=="Go To") {
  1057. parent[targetArray[0]].document.location.href=msg.data;
  1058. } else {
  1059. msg.target = targetArray[1];
  1060. msg.targetFrame = targetArray[0];
  1061. frameQueue.push(msg);
  1062. return(null);
  1063. }
  1064. }
  1065. } else {
  1066. var target = document.objectModel[theTargetName];
  1067. }
  1068. var t = msg.send(target);
  1069. return(t);
  1070. } else {
  1071. msg.target = theTargetName;
  1072. messageQueue.push(msg);
  1073. return(null);
  1074. }
  1075. }
  1076. function F_checkFrameQueue() {
  1077. while (frameQueue.index > 0) {
  1078. var msg = frameQueue.pop()
  1079. var d = parent[msg.targetFrame].document;
  1080. if ((d.objectModel) && (d.objectModel[msg.target]) && (d.F_loaded)) {
  1081. var target = parent[msg.targetFrame].document.objectModel[msg.target];
  1082. msg.send(target);
  1083. } else {
  1084. frameQueue.push(msg);
  1085. top.setTimeout("top.frames['"+self.name+"'].F_checkFrameQueue?top.frames['"+self.name+"'].F_checkFrameQueue():null;", 100);
  1086. break;
  1087. }
  1088. }
  1089. }
  1090. function sendMsgToFrame(theTargetName, msgText, msgData, theSender, theCascade, theTargetFrame) {
  1091. if (document.objectModel != null) {
  1092. msg = new F_cMessage(msgText, msgData,theCascade, theSender);
  1093. var target = eval(theTargetFrame+".document.objectModel[" + theTargetName+"]");
  1094. return(msg.send(target));
  1095. }
  1096. }
  1097. function F_cMessage(msg, theData, theCascade, theSender) {
  1098. this.message = msg;
  1099. this.data = theData;
  1100. this.cascade = theCascade;
  1101. this.relay = true;
  1102. this.canceled = false;
  1103. this.nextMessage = null;
  1104. this.sender = theSender;
  1105. this.senderFrame = null;
  1106. this.send = F_send;
  1107. }
  1108. function F_initCommands() {
  1109. var F_commands = new Object();
  1110. var a = new Array("img","txt","chk","rad","frm","tfd","sel","btn","doc","lyr","wht","win","map", "tln",
  1111. "shk", "snd", "vid", "act", "nav", "tbl", "jav", "com", "jbn", "frm", "vrm", "nbt", "fra", "fst");
  1112. for (var i = 0; i < a.length; i++)
  1113. F_commands[a[i]] = new F_cCommands(a[i]);
  1114. return(F_commands);
  1115. }
  1116. function F_cCommands(theType) {
  1117. }
  1118. function F_dummy() {
  1119. }
  1120. function F_addCommandsLoop (theObject, theCommands) {
  1121. for( var i = 0; i < (theCommands.length - 1); i = i + 2)
  1122. theObject[theCommands[i]] = theCommands[i + 1];
  1123. }
  1124. function F_addCommands_method(theObject, theMethod) {
  1125. var s = "Set ";
  1126. if (theMethod == "getObjectValue") s = "Get ";
  1127. for(var i=2; i < F_addCommands_method.arguments.length; i++) {
  1128. var t = F_addCommands_method.arguments[i];
  1129. theObject[s+t] = "this." + theMethod+ "('" + t.toLowerCase() + "', msg)";
  1130. }
  1131. }
  1132. function F_selectRestoreDefault(theLayer) {
  1133. for (var i = 0; i < theLayer.objRef.length; i++) {
  1134. if (theLayer.objRef.options[i].defaultSelected == true) {
  1135. theLayer.objRef.options[i].selected = true;
  1136. } else {
  1137. theLayer.objRef.options[i].selected = false;
  1138. }
  1139. }
  1140. }
  1141. function F_getObjectValue(theProperty, msg) {
  1142. msg.returnValue = this.objRef[theProperty];
  1143. }
  1144. function F_setObjectValue(theProperty, msg) {
  1145. this.objRef[theProperty] = msg.data;
  1146. }
  1147. function F_radioButtonRef(theRadioButton) {
  1148. for(var i = 0; i < theRadioButton.length ; i++)
  1149. if(theRadioButton[i].checked)
  1150. return(theRadioButton[i]);
  1151. return(theRadioButton[0]);
  1152. }
  1153. function F_radioButtonByValue(theRadioButton, theValue) {
  1154. if(theRadioButton) {
  1155. if((typeof theRadioButton.length)=="undefined"){
  1156. return(theRadioButton)
  1157. } else {
  1158. for(var i = 0; i < theRadioButton.length ; i++)
  1159. if(theRadioButton[i])
  1160. if(theRadioButton[i].value==theValue) {
  1161. return(theRadioButton[i]);
  1162. }
  1163. }
  1164. }
  1165. return(null);
  1166. }
  1167. function F_IE_radioButtonByValue(theRadioButton, theValue) {
  1168. return(theRadioButton);
  1169. }
  1170. function F_prototype (theRef){
  1171. for(var i=1; i < F_prototype.arguments.length; i = i + 2)
  1172. eval(theRef + F_prototype.arguments[i] +" = " + F_prototype.arguments[i+1]);
  1173. }
  1174. function F_prototypeF (theRef){
  1175. for(var i=1; i < F_prototypeF.arguments.length; i++)
  1176. eval(theRef + F_prototypeF.arguments[i] +" = F_" + F_prototypeF.arguments[i]);
  1177. }
  1178. function F_prototypeIE (theRef){
  1179. for(var i=1; i < F_prototypeIE.arguments.length; i++)
  1180. eval(theRef + F_prototypeIE.arguments[i] +" = F_IE_" + F_prototypeIE.arguments[i]);
  1181. }
  1182. function F_gotoURL(parm) {
  1183. if ( (typeof(parm) == 'string') && parm.indexOf("openpopup") == 0) {
  1184. eval(parm);
  1185. return;
  1186. }
  1187. if ( typeof(parm) == 'string')
  1188. {
  1189. var theName = this.name;
  1190. var obj = document.getElementById(theName);
  1191. obj.src = parm;
  1192. return true;
  1193. }
  1194. var theURL = parm;
  1195. var theTarget = "This";
  1196. if(typeof parm == "object") {
  1197. var theURL = parm.URL;
  1198. theTarget = parm["Target Frame"];
  1199. }
  1200. if(theURL == "") return(false);
  1201. if(theTarget == "Top") {
  1202. F_framesetGotoURL(theURL);
  1203. return(true);
  1204. }
  1205. if(theTarget == "Other") {
  1206. var n = parm["Other Target"];
  1207. var t = top.frames[n];
  1208. if(t){
  1209. t.document.location.href = theURL;
  1210. } else {
  1211. window.open(theURL, n);
  1212. }
  1213. return(true);
  1214. }
  1215. var relative = theURL.indexOf(':') < 0;
  1216. var p = theURL.split(':')[0];
  1217. var f = theURL.split('.');
  1218. var t = f[f.length-1].toLowerCase();
  1219. if((relative ||(p=="http")||(p=="shttp")||(p=="https")||(p=="file"))&&((t!="wav")&&(t!="au")&&(t!="aif")&&(t!="mid")&&(t!="rmf")&&(t!="avi")&&(t!="mov")&&(t!="mpg"))) {
  1220. if(!document.main.closing) {
  1221. document.main.closing = true;
  1222. this.theURL = F_getCompleteURL (theURL);
  1223. if(document.F_topObject) {
  1224. sendMsg(document.F_topObject, 'Page Exiting', '', null, true);
  1225. sendMsg(document.F_topObject, 'Check Closing', '', null);
  1226. }
  1227. }
  1228. } else {
  1229. if(theURL!="Javascript:void(0)")
  1230. document.location.href = theURL;
  1231. }
  1232. return(true);
  1233. }
  1234. top.closing = false;
  1235. function F_framesetGotoURL(theURL) {
  1236. if(!top.closing) {
  1237. top.closing = true;
  1238. top.theURL = F_getCompleteURL (theURL);
  1239. for(var i = 0; i < parent.frames.length; i++) {
  1240. with(top.frames[i].document) {
  1241. if(document.F_topObject) {
  1242. document.main.closing = true;
  1243. sendMsg(top.frames[i].name+":"+document.F_topObject, 'Page Exiting', '', null, true);
  1244. }
  1245. }
  1246. }
  1247. sendMsg(document.F_topObject, 'Check Closing', '', null);
  1248. }
  1249. }
  1250. function F_getCompleteURL (theURL) {
  1251. var relative = theURL.indexOf(':') < 0;
  1252. if(relative) {
  1253. var loc = top.location.href;
  1254. var newURL = loc.substring(0,loc.lastIndexOf('/')+1)
  1255. var urlStart = theURL.substring(0,2);
  1256. if(urlStart == './') {
  1257. newURL += theURL.substring(2,theURL.length)
  1258. }
  1259. var clippedURL = newURL;
  1260. while(urlStart == '..') {
  1261. clippedURL = clippedURL.substring(0,clippedURL.lastIndexOf('/',clippedURL.length-2)+1);
  1262. theURL = theURL.substring(3,theURL.length);
  1263. newURL = clippedURL + theURL;
  1264. urlStart = theURL.substring(0,2);
  1265. }
  1266. return(newURL);
  1267. }
  1268. return(theURL);
  1269. }
  1270. function F_checkClosing() {
  1271. if(!top.closing) {
  1272. if (document.main.closingObjects == 0) {
  1273. document.location.href = this.theURL;
  1274. document.main.closing = false;
  1275. }
  1276. } else {
  1277. var c = 0;
  1278. for(var i = 0; i < parent.frames.length; i++) {
  1279. with(top.frames[i].document) {
  1280. if(document.F_topObject) {
  1281. c += document.main.closingObjects;
  1282. }
  1283. }
  1284. }
  1285. if(c == 0)
  1286. top.location.href = top.theURL;
  1287. }
  1288. }
  1289. function F_cRect(theLeft, theTop, theRight, theBottom) {
  1290. this.left = theLeft ;
  1291. this.top = theTop;
  1292. this.right = theRight ;
  1293. this.bottom = theBottom;
  1294. }
  1295. function F_cPoint(theX, theY) {
  1296. this.x = parseInt(theX);
  1297. this.y = parseInt(theY);
  1298. }
  1299. function F_cQueue () {
  1300. this.theQueue = new Array(0);
  1301. this.index = 0;
  1302. this.push = F_queuePush;
  1303. this.pop = F_queuePop;
  1304. }
  1305. function F_queuePop() {
  1306. var theValue = this.theQueue[--this.index];
  1307. this.theQueue[this.index] = null;
  1308. return(theValue);
  1309. }
  1310. function F_queuePush(theObject) {
  1311. this.theQueue[this.index++] = theObject;
  1312. }
  1313. function F_roundOff ( theNumber) {
  1314. if (theNumber > 0)return(Math.ceil(theNumber)); else return(Math.floor(theNumber));
  1315. }
  1316. function F_setClosing()
  1317. {
  1318. if(document.main.closing) {
  1319. this.closing = true;
  1320. document.main.closingObjects++;
  1321. }
  1322. }
  1323. function F_resetClosing()
  1324. {
  1325. if(this.closing) {
  1326. document.main.closingObjects--;
  1327. sendMsg(document.F_topObject, 'Check Closing', '', null);
  1328. }
  1329. }
  1330. function F_setupDrag() {
  1331. document.F_dragLayer = null;
  1332. if(navigator.appName=='Netscape')
  1333. {
  1334. document.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
  1335. document.onmousedown = F_nn_mouseDown;
  1336. document.onmouseup = F_mouseUp;
  1337. document.onmousemove = F_nn_mouseMove;
  1338. window.offscreenBuffering=true;
  1339. } else {
  1340. document.onmousemove = F_ie_mouseMove;
  1341. document.ondragstart = F_ie_dragStart;
  1342. document.onmouseup = F_IE_mouseUp;
  1343. }
  1344. }
  1345. var e;
  1346. function F_setEvent(e) {
  1347. target = e.target;
  1348. if ( F_NN && (target.indexOf(".htm") > -1) ) {
  1349. document.location.href = target;
  1350. return ;
  1351. }
  1352. if ( navigator.appName == 'Netscape' ) {
  1353. F_nn_setEvent( e );
  1354. } else {
  1355. F_ie_setEvent();
  1356. }
  1357. }
  1358. function F_nn_setEvent(e) {
  1359. window.NOFevent.pageX = e.pageX;
  1360. window.NOFevent.pageY = e.pageY;
  1361. }
  1362. function F_ie_setEvent() {
  1363. window.NOFevent.pageX = window.event.clientX;
  1364. window.NOFevent.pageY = window.event.clientY;
  1365. }
  1366. function F_nn_mouseMove (e) {
  1367. if ( ( document.F_dragLayer != null ) && ( document.F_dragLayer.length > 0 ) ) {
  1368. var d = document.F_dragLayer[0].layer;
  1369. d.oldx = isNaN(d.oldx) ? 0 : d.oldx;
  1370. d.oldy = isNaN(d.oldy) ? 0 : d.oldy;
  1371. if ( ( document.F_dragLayer.length == 1 ) && ( d.fastDrag ) ) {
  1372. var xMove = parseInt(d.oldx) - e.pageX ;
  1373. var yMove = parseInt(d.oldy) - e.pageY;
  1374. d.oldx = parseInt(d.oldx) - xMove ;
  1375. d.oldy = parseInt(d.oldy) - yMove;
  1376. d.offset (-xMove, -yMove);
  1377. } else {
  1378. F_drag ( e.pageX, e.pageY );
  1379. }
  1380. if ( e )
  1381. e.returnValue = false;
  1382. }
  1383. }
  1384. function F_clickedOnImage (mouseX, mouseY, imageRef) {
  1385. var theRef = null;
  1386. var topRef = imageRef;
  1387. for (var i in imageRef.childObjects) {
  1388. theRef = imageRef.childObjects[i];
  1389. if (F_pointInObject(theRef, mouseX, mouseY))
  1390. topRef = theRef;
  1391. }
  1392. return(topRef);
  1393. }
  1394. function F_pointInObject(obj, mouseX, mouseY) {
  1395. if (obj.clickable && obj.isVisible() && !obj.masked && obj.type != "map") {
  1396. var theLeft = obj.getLeft('screen') + obj.getClipLeft();
  1397. var theTop = obj.getTop('screen') + obj.getClipTop();
  1398. if ( (mouseX >= theLeft)
  1399. && (mouseX <= (theLeft + obj.getWidth() - 1))
  1400. && (mouseY >= theTop)
  1401. && (mouseY <= (theTop + obj.getHeight() - 1)) )
  1402. return(true)
  1403. else return(false);
  1404. }
  1405. if (obj.type == "map" && obj.parent.isVisible()) {
  1406. var x = obj.parent.getLeft('screen');
  1407. var y = obj.parent.getTop('screen');
  1408. if(obj.maptype == "rect") {
  1409. var theLeft = x + obj.map.left;
  1410. var theTop = y + obj.map.top;
  1411. var theRight = x + obj.map.right;
  1412. var theBottom = y + obj.map.bottom;
  1413. if ( (mouseX >= theLeft)
  1414. && (mouseX <= theRight)
  1415. && (mouseY >= theTop)
  1416. && (mouseY <= theBottom) )
  1417. return(true)
  1418. else
  1419. return(false);
  1420. } else
  1421. if(obj.maptype == "poly") {
  1422. var theX = mouseX - x;
  1423. var theY = mouseY - y;
  1424. if ( F_clickedOnPolygon(theX, theY, obj.map) )
  1425. return(true)
  1426. else
  1427. return(false);
  1428. } else
  1429. if(obj.maptype == "circ") {
  1430. var theX = mouseX - x - obj.map.x;
  1431. var theY = mouseY - y - obj.map.y;
  1432. if ( Math.sqrt((theX * theX) + (theY * theY)) <= obj.map.radius)
  1433. return(true)
  1434. else
  1435. return(false);
  1436. }
  1437. }
  1438. }
  1439. function F_clickedOnPolygon(x, y, polygon) {
  1440. var c = false;
  1441. var p1 = polygon[polygon.length-1];
  1442. for (var i=0;i<polygon.length;i++) {
  1443. p2 = polygon[i];
  1444. if((((p1.y<=y) && (y<p2.y)) ||
  1445. ((p2.y<=y) && (y<p1.y))) &&
  1446. (x< (p2.x - p1.x) * (y - p1.y) / (p2.y - p1.y) + p1.x))
  1447. c=!c;;
  1448. p1 = p2;
  1449. }
  1450. return(c);
  1451. }
  1452. function F_nn_mouseDown (e) {
  1453. F_setEvent(e);
  1454. var retval = routeEvent(e);
  1455. if ( typeof retval == "undefined" )
  1456. return false;
  1457. else
  1458. return retval;
  1459. }
  1460. function F_ie_mouseMove () {
  1461. if ((document.F_dragLayer != null)&&(document.F_dragLayer.length>0)) {
  1462. var d = document.F_dragLayer[0].layer;
  1463. if((document.F_dragLayer.length==1)&&(d.fastDrag)) {
  1464. if(typeof d.oldx=="undefined"){
  1465. d.oldx = event.clientX;
  1466. d.oldy = event.clientY;
  1467. }
  1468. var xMove = d.oldx - event.clientX;
  1469. var yMove = d.oldy - event.clientY;
  1470. d.oldx = d.oldx - xMove ;
  1471. d.oldy = d.oldy - yMove;
  1472. d.style.left = (d.style.pixelLeft -xMove);
  1473. d.style.top = (d.style.pixelTop -yMove);
  1474. } else {
  1475. F_drag (event.clientX, event.clientY);
  1476. }
  1477. event.returnValue = false;
  1478. }
  1479. }
  1480. function F_ie_dragStart () {
  1481. event.returnValue = false;
  1482. }
  1483. function F_mouseUp (e) {
  1484. F_setEvent(e);
  1485. if(document.F_dragLayer != null) {
  1486. for(var i=(document.F_dragLayer.length-1);i>-1;i--) {
  1487. if(document.F_dragLayer)
  1488. if(document.F_dragLayer[i]) {
  1489. var dObj = document.F_dragLayer[i];
  1490. if(dObj.type == "Until Mouse Up") {
  1491. dObj.layer.endDrag();
  1492. }
  1493. }
  1494. }
  1495. }
  1496. var retval = routeEvent(e);
  1497. return true;
  1498. }
  1499. function F_IE_mouseUp (e) {
  1500. F_ie_setEvent();
  1501. if(document.F_dragLayer != null) {
  1502. for(var i=(document.F_dragLayer.length-1);i>-1;i--) {
  1503. if(document.F_dragLayer)
  1504. if(document.F_dragLayer[i]) {
  1505. var dObj = document.F_dragLayer[i];
  1506. if(dObj.type == "Until Mouse Up") {
  1507. dObj.layer.endDrag();
  1508. }
  1509. }
  1510. }
  1511. }
  1512. if (typeof(HideMenu) != "undefined")
  1513. HideMenu();
  1514. }
  1515. var messageQueue = new F_cQueue();
  1516. var frameQueue = new F_cQueue();
  1517. function F_pageLoaded(theID) {
  1518. window.status="Finishing";
  1519. F_setupDrag();
  1520. if(theID == null) F_debug("ERROR: no parameter passed to F_pageLoaded()");
  1521. document.F_topObject = theID;
  1522. document.clickLayer = null;
  1523. F_addCommandCallback ();
  1524. document.F_loaded=true;
  1525. while (messageQueue.index > 0) {
  1526. var msg = messageQueue.pop()
  1527. msg.send(document.objectModel[msg.target]);
  1528. }
  1529. document.F_windows=new Object();
  1530. window.status=F_barError;
  1531. sendMsg(theID ,'Page Loaded', '', null, true);
  1532. if(parent!=self) {
  1533. if(F_NN || !F_MAC) {
  1534. if(top.setTimeout) {
  1535. top.setTimeout("top.frames['"+self.name+"'].F_checkFrameQueue?top.frames['"+self.name+"'].F_checkFrameQueue():null;", 100);
  1536. }
  1537. } else {
  1538. setTimeout("F_checkFrameQueue?F_checkFrameQueue():null;", 100);
  1539. }
  1540. }
  1541. }
  1542. function F_addEventToLinks (theHandle) {
  1543. for (var layerNo = 0; layerNo < theHandle.layers.length; layerNo++) {
  1544. docHandle = theHandle.layers[layerNo].document;
  1545. for(var i = 0;i < docHandle.links.length;i++) {
  1546. if(("undefined" == typeof docHandle.links[i].onmouseover)&&("undefined" != typeof docHandle.links[i].onclick)) {
  1547. var l = docHandle.links[i].onclick + "";
  1548. var t = l.split('"');
  1549. docHandle.links[i].onmouseover = new Function("return(F_e('"+ t[1] +"', F_MV))");
  1550. }
  1551. }
  1552. F_addEventToLinks (docHandle)
  1553. }
  1554. }
  1555. function F_paramObject(msg, obj) {
  1556. if(obj==null) obj=new Object();
  1557. var t = {element:obj.objRef, container:obj.styleDiv,containerStyle:obj.style,id:obj.styleID,type:obj.type,objectRef:obj,childRefs:obj.childObjects,parentRef:obj.parent,form:obj.formRef,message:msg};
  1558. return(t);
  1559. }
  1560. function F_getReference(id) {
  1561. return(window.document.objectModel[id]);
  1562. }
  1563. function F_sendMessage(theTargetID, msgText, msgData, theCascade) {
  1564. if(typeof msgData == "object")
  1565. msgData.getParm=F_getParm2;
  1566. return(sendMsg(theTargetID, msgText, msgData, null, theCascade));
  1567. }
  1568. function F_e(theTarget, theEvent) {
  1569. var d = document.objectModel[theTarget];
  1570. if( !F_NN && !F_DOM_NN && !is_opera && event.srcElement != null) {
  1571. var t = event.srcElement.tagName;
  1572. var isFontTag = ( (t=='B') || (t=='I') || (t=='FONT') || (t=='SUB') || (t=='SUP') || (t=='STRIKE') || (t=='U') );
  1573. if ( ( document.F_loaded ) && ( event.srcElement )
  1574. && !( ( event.srcElement.id == theTarget ) || (event.srcElement.id == theTarget+"LYR") || ( isFontTag ) )
  1575. && (d.type!="map" ) && ( d.type!="img" ) && ( d.type!="b" ) ) {
  1576. event.cancelBubble = true;
  1577. return(false);
  1578. }
  1579. }
  1580. if( navigator.appName != 'Netscape' && !is_opera ) {
  1581. F_ie_setEvent();
  1582. }
  1583. if( theEvent == F_MD ) {
  1584. var t = theTarget;
  1585. if(d.type=="img")
  1586. t = F_clickedOnImage(window.NOFevent.pageX,window.NOFevent.pageY , d).styleID;
  1587. F_sndMsg(t, theEvent, '');
  1588. if(F_MAC)
  1589. return(t!=theTarget);
  1590. else
  1591. return(true)
  1592. }
  1593. if(theEvent == F_MU) {
  1594. if(document.F_dragLayer != null) {
  1595. for(var i=(document.F_dragLayer.length-1);i>-1;i--) {
  1596. if(document.F_dragLayer) {
  1597. if(document.F_dragLayer[i]) {
  1598. var dObj = document.F_dragLayer[i];
  1599. if(dObj.type == "Until Mouse Up") {
  1600. dObj.layer.endDrag();
  1601. }
  1602. }
  1603. }
  1604. }
  1605. }
  1606. if((document.F_loaded)&&(d.type=="img"))
  1607. theTarget = F_clickedOnImage(window.NOFevent.pageX,window.NOFevent.pageY , d).styleID;
  1608. F_sndMsg(theTarget, theEvent, '');
  1609. return(true);
  1610. }
  1611. if(theEvent == F_MV) {
  1612. if (document.F_loaded) {
  1613. var c = true;
  1614. var d = document.objectModel[theTarget];
  1615. if (typeof d.actions!="undefined") {
  1616. var A = d.actions['Clicked'];
  1617. if (typeof A!="undefined") {
  1618. for( var i = 0; i < (A.length - 3); i = i + 4) {
  1619. if(A[i+1]=="Go To")
  1620. c= false;
  1621. }
  1622. }
  1623. }
  1624. if(c) {
  1625. window.status="";
  1626. F_sndMsg(theTarget, theEvent, '');
  1627. return(true)
  1628. }
  1629. }
  1630. }
  1631. if(theEvent == F_HR) {
  1632. F_sndMsg(theTarget, F_CL, '')
  1633. return(void(0));
  1634. }
  1635. F_sndMsg(theTarget, theEvent, '');
  1636. if((typeof document.objectModel != "undefined") && (typeof document.objectModel[theTarget] != "undefined") &&
  1637. (document.objectModel[theTarget].formObj)) return(true);
  1638. return(false);
  1639. }
  1640. function F_c() {
  1641. window.status="";
  1642. }
  1643. function F_n(theTarget, theURL) {
  1644. if(document.F_loaded) {
  1645. F_sndMsg(theTarget, 'Go To', theURL);
  1646. }
  1647. return(false);
  1648. }
  1649. function F_sndMsg(theTarget, theEvent, theParm) {
  1650. sendMsg(theTarget, theEvent, theParm, null, false);
  1651. }
  1652. function F_s(p,l,t,i,v,c) {
  1653. return("position: " + p + "; left:" + l + "; top:" + t + "; z-index: " + i + "; visibility: " + v + "; clip: rect(" + c + ")");
  1654. }
  1655. var F_A = "Abort";
  1656. var F_B = "Blur";
  1657. var F_CH = "Change";
  1658. var F_CL = "Clicked";
  1659. var F_DB = "Double Clicked";
  1660. var F_E = "Error";
  1661. var F_F = "Focus";
  1662. var F_L = "Loaded";
  1663. var F_MT = "Mouse Out";
  1664. var F_MV = "Mouse Over";
  1665. var F_MU = "Mouse Up";
  1666. var F_MD = "Mouse Down";
  1667. var F_R = "Reset";
  1668. var F_SE = "Select";
  1669. var F_SU = "Submit";
  1670. var F_U = "Unload";
  1671. var F_HR = "Map";
  1672. function F_Parm() {
  1673. var ob = new Object();
  1674. ob[0] = "parm";
  1675. for(var i=0; i < F_Parm.arguments.length; i = i + 2)
  1676. ob[F_Parm.arguments[i]] = F_Parm.arguments[i+1];
  1677. ob.getParm = F_getParm2;
  1678. return(ob);
  1679. }
  1680. function F_getParm2(theParamter, theDefault) {
  1681. return(typeof(this[theParamter]) != "undefined"?this[theParamter]:theDefault);
  1682. }
  1683. function F_Exp(t) {
  1684. var ob = new Object();
  1685. ob[0] = "exp";
  1686. ob[1] = t;
  1687. ob.getParm=F_getParm2;
  1688. return(ob);
  1689. }
  1690. function F_Action(theTargetName, msgText, msgData, theCascade) {
  1691. var P = msgData;
  1692. if(typeof P == "object") {
  1693. if (P[0] == "msg") {
  1694. P = sendMsg(P[1], P[2], P[3], null);
  1695. }
  1696. if (P[0] == "exp") {
  1697. var func = new Function("return("+P[1]+")");
  1698. NOFparameters = F_paramObject(msg, top.F_curObj);
  1699. params = NOFparameters;
  1700. var P = func();
  1701. if(typeof P == "undefined") P = new Object();
  1702. if((typeof P == "object")&&(P != null)) P.getParm=F_getParm2;
  1703. }
  1704. }
  1705. var t = sendMsg(theTargetName, msgText, P, null, theCascade);
  1706. return(t);
  1707. }
  1708. function F_Msg(a, b, c) {
  1709. var ob = new Array();
  1710. ob[0] = "msg";
  1711. ob[1] = a;
  1712. ob[2] = b;
  1713. ob[3] = c;
  1714. return(ob);
  1715. }
  1716. function F_OM(objectID, theLayerID, theType, theParent) {
  1717. var parms = F_OM.arguments.length;
  1718. var theHandler = (parms<5) ? null : F_OM.arguments[4];
  1719. var formName = (parms<6) ? "" : F_OM.arguments[5];
  1720. var isRelative = (parms<7) ? false : F_OM.arguments[6];
  1721. var objectName = (parms<8) ? false : F_OM.arguments[7];
  1722. var theValue = (parms<9) ? null : F_OM.arguments[8];
  1723. if(typeof document.objectModel[objectID] != "undefined")
  1724. F_debug("Duplicate Object ID: " + objectID);
  1725. document.objectModel[objectID] = new document.main.cObject(theLayerID, theType, theParent, theHandler, isRelative, objectID, formName, objectName, theValue);
  1726. }
  1727. function F_OM_Map(objectID, theMapType, theParent, theHandler) {
  1728. F_OM(objectID, "", "map", theParent, theHandler);
  1729. document.objectModel[objectID].maptype = theMapType;
  1730. if(theMapType == "rect") {
  1731. document.objectModel[objectID].map = new F_cRect(F_OM_Map.arguments[4], F_OM_Map.arguments[5], F_OM_Map.arguments[6], F_OM_Map.arguments[7]);
  1732. }
  1733. if(theMapType == "circ") {
  1734. document.objectModel[objectID].map = new Object();
  1735. document.objectModel[objectID].map.x = F_OM_Map.arguments[4];
  1736. document.objectModel[objectID].map.y = F_OM_Map.arguments[5];
  1737. document.objectModel[objectID].map.radius = F_OM_Map.arguments[6];
  1738. }
  1739. if(theMapType == "poly") {
  1740. document.objectModel[objectID].map = new Array(0);
  1741. var index = 0;
  1742. for(var i=4; i < F_OM_Map.arguments.length; i = i + 2)
  1743. document.objectModel[objectID].map[index++] = new F_cPoint(F_OM_Map.arguments[i], F_OM_Map.arguments[i+1]);
  1744. }
  1745. }
  1746. var F_commandObjects = new Array();
  1747. var F_commandCommands = new Array();
  1748. var F_commandExpression = new Array();
  1749. var F_commandType = new Array();
  1750. function F_addCommand (theObject, theCommand, theExpression) {
  1751. F_commandObjects[F_commandObjects.length] = theObject;
  1752. F_commandCommands[F_commandCommands.length] = theCommand;
  1753. F_commandExpression[F_commandExpression.length] = theExpression;
  1754. F_commandType[F_commandType.length] = "obj";
  1755. }
  1756. function F_addCommandForID (theID, theCommand, theFunction) {
  1757. F_commandObjects[F_commandObjects.length] = theID;
  1758. F_commandCommands[F_commandCommands.length] = theCommand;
  1759. F_commandExpression[F_commandExpression.length] = theFunction;
  1760. F_commandType[F_commandType.length] = "id";
  1761. }
  1762. function F_addCommandCallback () {
  1763. for(var j=0; j < F_commandObjects.length; j++) {
  1764. var cmd = F_commandCommands[j];
  1765. var exp = F_commandExpression[j];
  1766. var obj = F_commandObjects[j];
  1767. if(F_commandType[j] == "obj") {
  1768. var a = obj.split(",");
  1769. for(var i=0; i < a.length; i++) {
  1770. if( typeof document.main.commands[a[i]] != "undefined")
  1771. document.main.commands[a[i]][cmd] = exp;
  1772. if(a[i] == "vis") {
  1773. var b = new Array ("img","txt","lyr","nav","tbl","jbn");
  1774. for (var k = 0; k < b.length; k++) {
  1775. document.main.commands[b[k]][cmd] = exp;
  1776. }
  1777. }
  1778. }
  1779. } else {
  1780. if(typeof document.objectModel[obj].actions=="undefined") document.objectModel[obj].actions = new Object();
  1781. var act = document.objectModel[obj].actions;
  1782. if(typeof act[cmd]=="undefined") act[cmd] = new Array();
  1783. act[cmd] = act[cmd].concat([exp,'','',0]);
  1784. }
  1785. }
  1786. }
  1787. function F_getFrameRef() {
  1788. var t = '';
  1789. var f = self;
  1790. while(f!=top) {
  1791. t=".frames['"+f.name+"']"+t;
  1792. f = f.parent;
  1793. }
  1794. t="top"+t;
  1795. return(t);
  1796. }
  1797. function F_setTimeout(timeoutTest, textRef, functionName, theDelay) {
  1798. if( F_NN || !F_MAC ) {
  1799. if( top.setTimeout ) {
  1800. var r = top.setTimeout(timeoutTest+'?'+textRef + '.' + functionName+':null;', theDelay);
  1801. }
  1802. } else {
  1803. var r = setTimeout(textRef + '.' + functionName, theDelay);
  1804. }
  1805. return(r);
  1806. }
  1807. function F_setInterval(timeoutTest, textRef, functionName, theDelay) {
  1808. if(F_NN || !F_MAC) {
  1809. if(top.setTimeout) {
  1810. var r = top.setInterval(timeoutTest+'?'+textRef + '.' + functionName+':null;', theDelay);
  1811. }
  1812. } else {
  1813. var r = setInterval(textRef + '.' + functionName, theDelay);
  1814. }
  1815. return(r);
  1816. }
  1817. function F_onLoaded(){
  1818. window.F_doLoaded = F_doLoaded;
  1819. if(parent!=self) {
  1820. if((F_NN || !F_MAC)) {
  1821. return(top.setTimeout(F_getFrameRef() + '.F_doLoaded();', 100));
  1822. } else {
  1823. return(setTimeout('window.F_doLoaded();', 100));
  1824. }
  1825. } else {
  1826. return(setTimeout( 'window.F_doLoaded();', 100));
  1827. }
  1828. }
  1829. document.F_debugEnabled = false;
  1830. function F_debug(m) {
  1831. if(document.F_debugEnabled){
  1832. F_barError = '**** ERROR **** ' + m
  1833. window.status = F_barError;
  1834. window.defaultStatus = F_barError;
  1835. }
  1836. }
  1837.  
  1838.